package com.aaa.system.dao;


import com.aaa.entity.RoleUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.aaa.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author Lei
 * @create 2023-03-20 16:41
 */
public interface UserDao extends BaseMapper<User> {

    boolean muldelUser(@Param("userIds") Long[] userIds);

    List<Map<String, String>> selectRoleList(Long userId);

    Boolean delRoleList(Long userId);

    List<RoleUser> selectUserById(Long roleId);

    Boolean updateByPhone(@Param("phone") String phone,@Param("encode") String encode);
}
